package com.sora.eduservice.mapper;

import com.sora.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sora.eduservice.entity.frontvo.CourseWebVo;
import com.sora.eduservice.entity.vo.CoursePublishVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author sora
 * @since 2022-12-28
 */
@Mapper
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    /**
     * 获取发布课程信息
     * @param id
     * @return
     */
    CoursePublishVo getPublishCourseInfo(String id);
    /**
     * 获取课程基本信息
     * @param courseId
     * @return
     */
    CourseWebVo getBaseCourseInfo(String courseId);

}
